home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 2.iso
/
toolbox
/
public
/
TIFF
/
tools
/
Makefile.aix
< prev
next >
Wrap
Makefile
|
1996-11-11
|
5KB
|
157 lines
# $Header: /toolbox/src/irix5/public/TIFF/tools/RCS/Makefile.aix,v 1.2 1996/08/02 01:05:46 DTjanitor Exp $
#
# TIFF Library Tools
#
# Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
# Copyright (c) 1991, 1992 Silicon Graphics, Inc.
#
# Permission to use, copy, modify, distribute, and sell this software and
# its documentation for any purpose is hereby granted without fee, provided
# that (i) the above copyright notices and this permission notice appear in
# all copies of the software and related documentation, and (ii) the names of
# Sam Leffler and Silicon Graphics may not be used in any advertising or
# publicity relating to the software without the specific, prior written
# permission of Stanford and Silicon Graphics.
#
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
#
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.
#
# SHELL, CTAGS, RANLIB and INSTALL is not defined in standard make for AIX
#
RANLIB=/usr/bin/ranlib
SHELL=/bin/sh
CTAGS=ctags -tw
CC=xlc -DBSDTYPES -D_POSIX_SOURCE
#
# The AIX versions of install is execute by root only, or SYSV versions.
# INSTALL=/usr/ucb/install
INSTALL=bsdinstall
BINDIR=/usr/local/bin
#
NULL=
IPATH= -I../libtiff
#
# If you don't want the public domain getopt code, then
# simply null this out and you'll get whatever is in your
# libc (or similar).
#
GETOPT= getopt.o
#
# Library-wide configuration defines.
# Note that if you change the library-wide configuration, you'll
# need to manual force a full rebuild.
#
CONF_LIBRARY=\
${NULL}
COPTS=
CFLAGS= -O ${COPTS} ${IPATH}
#
LIBTIFF=../libtiff/libtiff.a
LIBS= ${LIBTIFF}
MACHALL=ras2tiff
OBJS= \
fax2tiff.o \
gif2tiff.o \
pal2rgb.o \
ppm2tiff.o \
rgb2ycbcr.o \
tiff2bw.o \
tiff2ps.o \
tiffcmp.o \
tiffcp.o \
tiffdither.o \
tiffdump.o \
tiffinfo.o \
tiffmedian.o \
tiffsplit.o \
ras2tiff.o \
${GETOPT} \
${NULL}
ALL= \
fax2tiff \
gif2tiff \
pal2rgb \
ppm2tiff \
rgb2ycbcr \
tiff2bw \
tiff2ps \
tiffcmp \
tiffcp \
tiffdither \
tiffdump \
tiffinfo \
tiffmedian \
tiffsplit \
${MACHALL} \
${NULL}
all: ${ALL}
tiffinfo: tiffinfo.c ${GETOPT} ${LIBTIFF}
${CC} -o tiffinfo ${CFLAGS} tiffinfo.c ${GETOPT} ${LIBS}
tiffcmp:tiffcmp.c ${GETOPT} ${LIBTIFF}
${CC} -o tiffcmp ${CFLAGS} tiffcmp.c ${GETOPT} ${LIBS}
tiffcp: tiffcp.c ${LIBTIFF}
${CC} -o tiffcp ${CFLAGS} tiffcp.c ${LIBS}
tiffdump: tiffdump.c
${CC} -o tiffdump ${CFLAGS} tiffdump.c
tiffmedian: tiffmedian.c ${LIBTIFF}
${CC} -o tiffmedian ${CFLAGS} tiffmedian.c ${LIBS}
tiffsplit: tiffsplit.c ${LIBTIFF}
${CC} -o tiffsplit ${CFLAGS} tiffsplit.c ${LIBS}
tiff2ps: tiff2ps.c ${LIBTIFF}
${CC} -o tiff2ps ${CFLAGS} tiff2ps.c ${LIBS} -lm
# junky stuff...
# convert RGB image to B&W
tiff2bw: tiff2bw.c ${GETOPT} ${LIBTIFF}
${CC} -o tiff2bw ${CFLAGS} tiff2bw.c ${GETOPT} ${LIBS}
# convert B&W image to bilevel w/ FS dithering
tiffdither: tiffdither.c ${GETOPT} ${LIBTIFF}
${CC} -o tiffdither ${CFLAGS} tiffdither.c ${GETOPT} ${LIBS}
# Sun rasterfile converter
ras2tiff: ras2tiff.c ${LIBTIFF}
${CC} -o ras2tiff ${CFLAGS} ras2tiff.c ${LIBS}
# GIF converter
gif2tiff: gif2tiff.c ${LIBTIFF}
${CC} -o gif2tiff ${CFLAGS} gif2tiff.c ${LIBS} -lm
# PBM converter
ppm2tiff: ppm2tiff.c ${LIBTIFF}
${CC} -o ppm2tiff ${CFLAGS} ppm2tiff.c ${LIBS}
# SGI image file converter
sgi2tiff: sgi2tiff.c ${LIBTIFF}
${CC} -o sgi2tiff ${CFLAGS} sgi2tiff.c -limage ${LIBS}
# Group 3 FAX file converter
fax2tiff: fax2tiff.c ${GETOPT} ${LIBTIFF}
${CC} -o fax2tiff ${CFLAGS} ${CONF_LIBRARY} fax2tiff.c ${GETOPT} ${LIBS}
# convert Palette image to RGB
pal2rgb: pal2rgb.c ${LIBTIFF}
${CC} -o pal2rgb ${CFLAGS} pal2rgb.c ${LIBS}
# convert RGB image to YCbCr
rgb2ycbcr: rgb2ycbcr.c ${GETOPT} ${LIBTIFF}
${CC} -o rgb2ycbcr ${CFLAGS} rgb2ycbcr.c ${GETOPT} ${LIBS} -lm
# SGI versions of tiffgt & tiffsv
tiffgt: sgigt.c ${GETOPT} ${LIBTIFF}
${CC} -o tiffgt ${CFLAGS} sgigt.c ${GETOPT} ${LIBS} -lgutil -lgl -lm
tiffsv: sgisv.c ${LIBTIFF}
${CC} -o tiffsv ${CFLAGS} sgisv.c ${LIBS} -lgutil -lgl -lm
install: all
@-for i in ${ALL}; do \
echo ${INSTALL} -c -s $$i ${BINDIR}/$$i; \
${INSTALL} -c -s $$i ${BINDIR}/$$i; \
done
clean:
rm -f ${ALL} ${OBJS} core a.out ycbcr
$(LIBTIFF):
ln -s /usr/local/lib/libtiff.a $@